<template>
    <div class="title-top">
        <div class="text">{{text}}</div>
        <div class="line"></div>
    </div>
</template>

<script>
import {getCartTitle} from '../../assets/data/cart.js'
export default {
    data:function(){
        return{
            text:getCartTitle()
        }
    }
}
</script>

<style scoped>
.text{
    /* border: red 1px solid; */
    position: absolute;
    left: 830px;
    top: 180px;
    letter-spacing: 2px;
    color:#000;
    font-weight: bolder;
    font-size: 30px;
    font-family:"黑体";
}
.title-top{
    width: 100%;
    background: #f1f2ed;
    height: 80px;
}
.line{
    width: 80%;
    position: relative;
    top: 120px;
    left: 10%;
    border-top: 1px solid gainsboro;
}
</style>